 const { override, fixBabelImports,addWebpackAlias } = require('customize-cra');

 const path = require('path')

 module.exports = override(
   fixBabelImports('import', {
     libraryName: 'antd-mobile',
     style: 'css',
   }),
   addWebpackAlias({
      ['pages']:pathUrl('./src/pages'),
      ['assets']:pathUrl('./src/assets'),
      ['components']:pathUrl('./src/components'),
      ['store']:pathUrl('./src/store'),
      ['utils']:pathUrl('./src/utils'),
      ['common']:pathUrl('./src/common'),
    })
  );
          function pathUrl(way){
            return path.join(__dirname,way)
          }